﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GrayParrot.Web.Formly
{


    /// <summary>
    /// Events manager...
    /// </summary>
    public class EventsManager
    {
        public static List<EventCallback> Eventi { get; set; }

        //public EventsManager()
        //{

        //}

        public static void CreaEventi()
        {
        }

        //public override string ToString()
        //{
        //    string retValue = string.Empty;

        //    StringBuilder sb = new StringBuilder();
        //    foreach (EventCallback ec in Eventi)
        //    {
        //        sb.AppendFormat("{0} = function($viewValue, $modelValue, scope){{ {1}($viewValue, $modelValue, scope); }}", ec.Evento, ec.Callback);
        //    }

        //    retValue = sb.ToString();

        //    return retValue;
        //}
    }
}
